package com.ruoyi.system.domain;

import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.List;

/**
 * 用户活动答题对象 buz_task_user_question
 * 
 * @author ruoyi
 * @date 2023-08-31
 */
@Data
public class BuzTaskUserQuestion extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private String id;

    /** 用户参加的活动记录ID */
    @Excel(name = "用户参加的活动记录ID")
    private String buzTaskUserId;

    /** 活动ID */
    @Excel(name = "活动ID")
    private String buzTaskId;

    /** 题目 */
    @Excel(name = "题目")
    private String ask;

    /** 题目类型(0:判断;1:单选:2:多选) */
    @Excel(name = "题目类型(0:判断;1:单选:2:多选)")
    private Integer questionType;

    /** 正确答案 */
    @Excel(name = "正确答案")
    private String answerKey;

    /** 答案解析 */
    @Excel(name = "答案解析")
    private String questionMemo;

    /** 题目图片 */
    @Excel(name = "题目图片")
    private String aksImg;

    /** 用户提交答案 */
    @Excel(name = "用户提交答案")
    private String userAnswer;

    /** 回答结果正确错误 */
    @Excel(name = "回答结果正确错误")
    private Integer rightWrong;

    private List<BuzTaskUserOption> buzTaskUserOptions;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setBuzTaskUserId(String buzTaskUserId) 
    {
        this.buzTaskUserId = buzTaskUserId;
    }

    public String getBuzTaskUserId() 
    {
        return buzTaskUserId;
    }
    public void setBuzTaskId(String buzTaskId) 
    {
        this.buzTaskId = buzTaskId;
    }

    public String getBuzTaskId() 
    {
        return buzTaskId;
    }
    public void setAsk(String ask) 
    {
        this.ask = ask;
    }

    public String getAsk() 
    {
        return ask;
    }
    public void setQuestionType(Integer questionType) 
    {
        this.questionType = questionType;
    }

    public Integer getQuestionType() 
    {
        return questionType;
    }
    public void setAnswerKey(String answerKey) 
    {
        this.answerKey = answerKey;
    }

    public String getAnswerKey() 
    {
        return answerKey;
    }
    public void setQuestionMemo(String questionMemo) 
    {
        this.questionMemo = questionMemo;
    }

    public String getQuestionMemo() 
    {
        return questionMemo;
    }
    public void setAksImg(String aksImg) 
    {
        this.aksImg = aksImg;
    }

    public String getAksImg() 
    {
        return aksImg;
    }
    public void setUserAnswer(String userAnswer) 
    {
        this.userAnswer = userAnswer;
    }

    public String getUserAnswer() 
    {
        return userAnswer;
    }
    public void setRightWrong(Integer rightWrong) 
    {
        this.rightWrong = rightWrong;
    }

    public Integer getRightWrong() 
    {
        return rightWrong;
    }
    
    

    
    public List<BuzTaskUserOption> getBuzTaskUserOptions() {
		return buzTaskUserOptions;
	}

	public void setBuzTaskUserOptions(List<BuzTaskUserOption> buzTaskUserOptions) {
		this.buzTaskUserOptions = buzTaskUserOptions;
	}

	@Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("buzTaskUserId", getBuzTaskUserId())
            .append("buzTaskId", getBuzTaskId())
            .append("ask", getAsk())
            .append("questionType", getQuestionType())
            .append("answerKey", getAnswerKey())
            .append("questionMemo", getQuestionMemo())
            .append("aksImg", getAksImg())
            .append("userAnswer", getUserAnswer())
            .append("rightWrong", getRightWrong())
            .toString();
    }
}
